using System;

namespace GenericsFramework.BusinessRules
{
	public class AndRule<T> : AbstractRule<T>
	{
		public AndRule(Func<T, bool> ruleA, Func<T, bool> ruleB)
		{
			_rule = candidate => ruleA(candidate) && ruleB(candidate);
		}
	}
}